<template>
	<view class="union-list">
		<view class="union-item" v-for="index in 10" :key="index">
			<up-image src="https://img0.baidu.com/it/u=2180532927,374260484&fm=253&fmt=auto&app=120&f=JPEG" width="120rpx" height="120rpx" shape="circle" mode="aspectFit"></up-image>
			<view class="union-info">
				<view class="name">研云云</view>
				<view class="phone">13879136666</view>
			</view>
			<view class="right-btn" @tap="call">
				<up-icon name="phone-fill" size="20" color="#2A7DDF"></up-icon>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		methods: {
			call() {
				uni.makePhoneCall({
					phoneNumber: '13879136666'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.union-list {
		padding: 0 30rpx;
		font-size: 28rpx;
		.union-item {
			display: flex;
			justify-content: flex-start;
			align-items: center;
			padding: 30rpx 0;
			.union-info {
				padding-left: 20rpx;
				.name {
					font-size: 32rpx;
					margin-bottom: 20rpx;
				}
				.phone {
					font-size: 26rpx;
					color: $uni-text-color-grey;
				}
			}
			.right-btn {
				margin-left: auto;
			}
		}
	}
</style>